<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/12
  Time: 16:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改简历</title>
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改简历</small>
                </h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/resumes/update" method="post">
        <%-- 修改失败，首先判断是不是事务的问题，事务添加完毕，依然失败，
            然后查看sql语句，能否执行成功？sql执行失败，修改未完成，因为修改需要传id，我这里没有传
            解决：前端传递隐藏域
         --%>
        <input type="hidden" name="id" value="${resume.id }">
        <div class="form-group">
            <label>地址：</label>
            <input type="text" name="address" class="form-control" value="${resume.address }" required>
            <%-- 加了required，表单项必须填写才能提交 --%>
        </div>
        <div class="form-group">
            <label>姓名：</label>
            <input type="text" name="name" class="form-control" value="${resume.name }" required>
        </div>
        <div class="form-group">
            <label>电话：</label>
            <input type="text" name="phone" class="form-control" value="${resume.phone }" required>
        </div>
        <div class="form-group">
            <input type="submit" class="form-control" value="修改">
        </div>
    </form>

</div>
</body>
</html>
